﻿<?xml version="1.0" encoding="utf-8" ?>
<AgentPools xmlns="http://schemas.microsoft.com/developer/tfsbuddybuild/2008/buildagents">
    <!--
        Name          - Agent pool name. Keep value as "Default".
        
        The following is the sequence of steps followed in determining the "effective" machine
        pool agents to be used in load balancing a queued build request:
        
        1) Only BuildAgent definitions with Disabled=false are considered. Definitions with
           Disabled=true are ignored.
        2) Those BuildAgent definitions are applied to the list of agents currently assigned to 
           the Team Project.
           
        Name - A regular expression. You can use complicated expressions to define agents to be
               included in the pool. You can define multiple expressions to provide different lists
               or to break them down into multiple groups each with a different weight factor.
               You can also define individual agent names.
        Weight - The wieght factor that is considered by the load balancing algorithm to break a tie
               between different agents with identical queue lengths. The higher the Weight value, the
               more priority the corresponding BuildAgent definition is given. The weight cannot be less
               than or equal to 0, or more than 100. Weights outside that range will be considered as if
               they were 100.
               
        NOTE: If multiple expressions define a different weight for the same agent, the last definition
              is the "effective" one. This can be used, for example, to define the default attributes that
              apply to all/most machines and then individually customize the build agents that have attributes
              different from the 'default'.
              
        Other nodes that can be used in BuildAgent definitions (but not shown in the sample below):
        - DropLocation: Add this to customize the drop locations for builds occuring on certain agents.
                        e.g.: <DropLocation>\\DropSvr1\builds\</DropLocation>
        - Priority: Add this to customize the queue priority setting for the builds queued against that
                    build agent.
    -->
    <AgentPool Name="Default">
        <BuildAgent Disabled="false">
            <Name>.*</Name>
            <Weight>50</Weight>
        </BuildAgent>
        <BuildAgent Disabled="true">
            <Name>FastMachine</Name>
            <Weight>70</Weight>
        </BuildAgent>
    </AgentPool>
</AgentPools>
